package com.ochnas.volunteersignup.service;

import javax.jws.WebService;

import org.springframework.transaction.annotation.Transactional;

import com.ochnas.volunteersignup.domain.User;
@WebService
public interface UserService {
	@Transactional
	User createUserAccount(String emailAddress, String password, String firstName,
			String lastName, String contactPhoneNumber);
	@Transactional
	boolean activateUserAccount(String emailAddress, String activationKey);

	User loginUserAccount(String emailAddress, String password);
	
	User findUserAccount(Long userId);
	
	@Transactional
	User updateUserAccount(Long userId, String firstName, String lastName, String contactPhoneNumber);
	
	@Transactional
	User updatePassword(Long userId, String password);
	
	User findUserAccountByEmailAddress(String emailAddress);
		
}
